<?php
global $conf;
include 'm/media/p_media.php';
?>
<?PHP printformheader('Galleries','add');?>
	
	<?PHP  

		begin_form('add',$id);
		
				p_file('media_1',$o);

?>
<hr />
<?PHP

include 'm/content/b_icanbehidden.php';

?>

				<div class='icanbehidden'>
				<?PHP
				p_file('media_2',$o);
				p_file('media_3',$o);
				p_file('media_4',$o);
				p_file('media_5',$o);
				p_file('media_6',$o);
				p_file('media_7',$o);
				p_file('media_8',$o);
				p_file('media_9',$o);
				p_file('media_10',$o);
				?>
				</div>	
				<hr />


<?PHP	
		
	
		if(!empty($content_id))
		{
			$e['content_parent']=$content_id;
			p_input('content_parent',$o,$e);
			$page='index.php?q=m/content/d_basic_content.php&cmd=edit&content_id='.$content_id;		
			$page_label="Back to Content Page";
			$page2='?q=m/media/v_media.php&mode=view_options&content_option='.$e['content_option'];	
			$image_mode='view_options';
			$option_id=$e['content_option'];	
		}

		
		
		$e['content_type']=6;

		p_hidden('content_type',$o,$e);
		printsubmit("Upload");
		
		end_form('add');
	?>

	
<?PHP	printformfooter($page_label,$page,'Back',$conf->ref,NULL,NULL); ?>



